import { http } from '@/api/service'
import { transferFormData } from '@/utils/utils'

//家长端 发展检核详情
export const getDevelopReview = (params) => {
	return http.request({
		url: '/wx/api/developReview/childrenDetails',
		method: 'POST',
		params
	})
}
//家长端 里程碑
export const getMilepostRecord = (params) => {
	return http.request({
		url: '/wx/api/milepost_record/get',
		method: 'POST',
		params
	})
}
// 教师端 里程碑记录内容
export const getMonthAgeGrowth = (params) => {
	return http.request({
		url: '/pad/milepost_record/getMonthAgeGrowth',
		method: 'POST',
		params
	})
}
export const addMilepost = (params) => {
	return http.request({
		url: '/pad/milepost_record/add',
		method: 'POST',
		params
	})
}
export const getGrowthChildrenList = (params) => {
	return http.request({
		url: '/pad/milepost_record/getGrowthChildrenList',
		method: 'POST',
		params
	})
}
export const getMilepostRecordByTch = (params) => {
	return http.request({
		url: '/pad/milepost_record/get',
		method: 'POST',
		params
	})
}


// 获取检表题目
export const getDevelopReviewByMonth = (params) => {
	return http.request({
		url: '/pad/developReview/month_item_list',
		method: 'POST',
		params
	})
}

export const getDevelopReviewMonthList = (params) => {
	return http.request({
		url: '/pad/developReview/month_list',
		method: 'POST',
		params
	})
}
export const addDevelopReview = (params) => {
	console.log(params)
	return http.request({
		url: '/pad/developReview/add_user_month',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
		data: params
	})
}

export const getChildrenDetailsList = (params) => {
	return http.request({
		url: '/pad/developReview/childrenDetailsList',
		method: 'POST',
		params
	})
}

export const getDevelopReviewByTch = (params) => {
	return http.request({
		url: '/pad/developReview/childrenDetails',
		method: 'POST',
		params
	})
}
